12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHR00900.xrw
- * 설 명 : 결과지출력
- * 설 계 자 : 손주연
- * 작 성 자 : 손주연
- * 작 성 일 : 2007.08.13
- * 수정이력 : 결과지출력추가 - 김다영(2007.10.17)
- 결과지 출력 수정-조두현(2007.12.20)
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>결과지출력</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <contlst>
- <item>
- <sel/>
- <cmpynm/>
- <condd/>
- <contype/>
- <cmpycd/>
- <conseq/>
- <conhistseq/>
- <healexamflag/>
- </item>
- </contlst>
- <prntoptinfo>
- <prntflag>paper</prntflag>
- <prntsize>01</prntsize>
- </prntoptinfo>
- <detlinfo>
- <srchpid/>
- <srchpnm/>
- <prntpatlst>
- <item>
- <sel/>
- <prntyn/>
- <endyn/>
- <pid/>
- <hngnm/>
- <rgstno/>
- <orddd/>
- <statflag/>
- <pkgcd/>
- <cmpynm/>
- <deptnm/>
- <healexamflag/>
- <rsrvdd/>
- <rsrvno/>
- <assorsltcnts/>
- <detladdr/>
- <prntyn/>
- <prnttims/>
- <prntrid/>
- <prnttm/>
- <judgdrnm/>
- <sexage/>
- <ajcreatdd/>
- </item>
- </prntpatlst>
- </detlinfo>
- <info>
- <patinfo>
- <item>
- <pid/>
- <rgstno1/>
- <rgstno2/>
- <hngnm/>
- <engnm/>
- <sex/>
- <age/>
- <brthdd/>
- <zipcd1/>
- <zipcd2/>
- <addr/>
- <detladdr1/>
- <mpphon/>
- <telno/>
- <emailid/>
- <emailtype/>
- <healexampid/>
- <emailkind/>
- <zipcd21/>
- <zipcd22/>
- <addr2/>
- <detladdr2/>
- <psptno/>
- <brthareacnts/>
- <pidcretfg/>
- <zipcdseq1/>
- <zipcdseq2/>
- <clntgrde/>
- <patremcnts/>
- <notice/>
- </item>
- </patinfo>
- </info>
- <fstrsltinfo>
- <itemasso/>
- <itemjudg/>
- </fstrsltinfo>
- </main>
- <main1>
- <titleinfo>
- <cdid/>
- <cdnm/>
- <cmt/>
- </titleinfo>
- </main1>
- <send>
- <srchfromdd/>
- <srchtodd/>
- <srchhealexamflag/>
- <srchpid/>
- <srchpnm/>
- <srchcmpycd/>
- <srchcmpynm/>
- <srchinstcd/>
- <srchcond/>
- <srchcontinfo/>
- <srchcmpynm2/>
- <srchcmpyyn/>
- <srchrsrvdd/>
- <srchrsrvno/>
- <srchlangflag/>
- <srchorddd/>
- <srchhealexamdetlflag/>
- <srchassorsltcnts/>
- <srchpkgcd/>
- <srchonetwotype/>
- <updata>
- <req/>
- </updata>
- <srchddn/>
- <srchcdgrupid/>
- </send>
- <init>
- <baseinfo>
- <contypelst/>
- <statlst/>
- <healexamflag/>
- <hedetlflaglst/>
- <initaddrinfo/>
- </baseinfo>
- </init>
- <hidden/>
- <temp>
- <coninfolst/>
- <prntinfo/>
- <cdlst>
- </cdlst>
- <preview/>
- <language>H</language>
- <send>
- <pid/>
- <hngnm/>
- <excelparam/>
- <upload/>
- </send>
- <popupmenu>
- <item>
- <name>선택</name>
- <func>fSelCheck</func>
- </item>
- <item>
- <name>선택해지</name>
- <func>fSelUnCheck</func>
- </item>
- </popupmenu>
- <send2>
- <pid/>
- <hngnm/>
- <excelparam/>
- <upload/>
- </send2>
- <send0>
- <pid/>
- <hngnm/>
- <excelparam/>
- <upload/>
- <flag/>
- </send0>
- </temp>
- <report>
- <cmpyrslt>
- <item/>
- </cmpyrslt>
- <iteminfo/>
- <itemjudg/>
- <patinfo/>
- </report>
- <exceldata>
- <comexcellst>
- <item>
- <cmpynm/>
- <contype/>
- <famyrelacd/>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <hopedd/>
- <data1/>
- <data2/>
- <data3/>
- <data4/>
- <data5/>
- <data6/>
- <data7/>
- <data8/>
- <data9/>
- <data10/>
- <data11/>
- <data12/>
- <data13/>
- <data14/>
- <data15/>
- <data16/>
- <data17/>
- <data18/>
- <data19/>
- <data20/>
- <data21/>
- <data22/>
- <data23/>
- <data24/>
- <data25/>
- <data26/>
- <data27/>
- <data28/>
- <data29/>
- <data30/>
- <data31/>
- <data32/>
- <data33/>
- <data34/>
- <data35/>
- <data36/>
- <data37/>
- <data38/>
- <data39/>
- <data40/>
- <data41/>
- <data42/>
- <data43/>
- <data44/>
- <data45/>
- <data46/>
- <data47/>
- <data48/>
- <data49/>
- <data50/>
- <data51/>
- <data52/>
- <data53/>
- <data54/>
- <data55/>
- <data56/>
- <data57/>
- <data58/>
- <data59/>
- <data60/>
- <data61/>
- <data62/>
- <data63/>
- <data64/>
- <data65/>
- <data66/>
- <data67/>
- <data68/>
- <data69/>
- <data70/>
- <data71/>
- <data72/>
- <data73/>
- <data74/>
- <data75/>
- <data76/>
- <data77/>
- <data78/>
- <data79/>
- <data80/>
- <data81/>
- <data82/>
- <data83/>
- <data84/>
- <data85/>
- <data86/>
- <data87/>
- <data88/>
- <data89/>
- <data90/>
- <data91/>
- <data92/>
- <data93/>
- <data94/>
- <data95/>
- <data96/>
- <data97/>
- <data98/>
- <data99/>
- <data100/>
- <data101/>
- <data102/>
- <data103/>
- <data104/>
- <data105/>
- <data106/>
- <data107/>
- <data108/>
- <data109/>
- <data110/>
- <data111/>
- <data112/>
- <data113/>
- <data114/>
- <data115/>
- <data116/>
- <data117/>
- <data118/>
- <data119/>
- <data120/>
- <data121/>
- <data122/>
- <data123/>
- <data124/>
- <data125/>
- <data126/>
- <data127/>
- <data128/>
- <data129/>
- <data130/>
- <data131/>
- <data132/>
- <data133/>
- <data134/>
- <data135/>
- <data136/>
- <data137/>
- <data138/>
- <data139/>
- <data140/>
- <data141/>
- <data142/>
- <data143/>
- <data144/>
- <data145/>
- <data146/>
- <data147/>
- <data148/>
- <data149/>
- <data150/>
- <data151/>
- <data152/>
- <data153/>
- <data154/>
- <data155/>
- <data156/>
- <data157/>
- <data158/>
- <data159/>
- <data160/>
- <data161/>
- <data162/>
- <data163/>
- <data164/>
- <data165/>
- <data166/>
- <data167/>
- <data168/>
- <data169/>
- <data170/>
- <data171/>
- <data172/>
- <data173/>
- <data174/>
- <data175/>
- <data176/>
- <data177/>
- <data178/>
- <data179/>
- <data180/>
- <data181/>
- <data182/>
- <data183/>
- <data184/>
- <data185/>
- <data186/>
- <data187/>
- <data188/>
- <data189/>
- <data190/>
- <data191/>
- <data192/>
- <data193/>
- <data194/>
- <data195/>
- <data196/>
- <data197/>
- <data198/>
- <data199/>
- <data200/>
- <data201/>
- <data202/>
- <data203/>
- <data204/>
- <data205/>
- <data206/>
- <data207/>
- <data208/>
- <data209/>
- <data210/>
- <data211/>
- <data212/>
- <data213/>
- <data214/>
- <data215/>
- <data216/>
- <data217/>
- <data218/>
- <data219/>
- <data220/>
- <data221/>
- <data222/>
- <data223/>
- <data224/>
- <data225/>
- <data226/>
- <data227/>
- <data228/>
- <data229/>
- <data230/>
- <data231/>
- <data232/>
- <data233/>
- <data234/>
- <data235/>
- <data236/>
- <data237/>
- <data238/>
- <data239/>
- <data240/>
- <data241/>
- <data242/>
- <grade/>
- <judg/>
- <judgd/>
- </item>
- </comexcellst>
- <lgexcellst>
- <item/>
- </lgexcellst>
- <comexceljillist>
- <item>
- <no/>
- <healexamflag/>
- <rsrvdd/>
- <rsrvno/>
- <cmpycd/>
- <sickcd/>
- <jugdcd/>
- <pid/>
- <hopedd/>
- </item>
- </comexceljillist>
- </exceldata>
- <uploadfile>
- <upload>
- <uploadrslt/>
- <uploadjudg/>
- <uploadhopnm/>
- </upload>
- </uploadfile>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetBaseInfo();
- fInitInfo();
- fSetCmpyCtrl(true);
-
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRAHA00001"/>
- <submission id="TRAHA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/patinfo"/>
- <submission id="TRAHR00907" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/contlst"/>
- <submission id="TRAHR00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/detlinfo/prntlst"/>
- <submission id="TRAHA00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/cdlst"/>
- <submission id="TRAHR00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/prntinfo"/>
- <submission id="TRAHR00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/fstrsltinfo"/>
- <submission id="TRAHR00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/fstrsltinfo"/>
- <submission id="TRAHR00905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/report/cmpyrslt"/>
- <submission id="TRAHR00906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send" replace="instance" resultref="/root/exceldata/comexcellst"/>
- <submission id="TRAHR00911" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send0" replace="instance" resultref="/root/exceldata/comexcellst"/>
- <submission id="TRAHR00912" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send/upload" replace="instance" resultref="/root/uploadfile"/>
- <submission id="TXAHR01003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updata/req" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAHR00908" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send" resultref="/root/exceldata/lgexcellst"/>
- <submission id="TRAHR00909" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/prntinfo"/>
- <submission id="TRAHR00910" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main1"/>
- <!-- 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 1. 질환여부검색 -->
- <submission id="TRAHR00913" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/send2" replace="instance" resultref="/root/exceldata/comexceljillst"/>
- <submission id="TRAHB05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_05400/reqdata" resultref="/root/main/prt"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var m_vHealExamFlag = "";
- /*=======================================================================================
- *공통코드 가져오기
- =======================================================================================*/
- function fGetBaseInfo(){
- if( checkOpener() ){
- m_vHealExamFlag = opener.javascript.getParameter("SMAHR00900_PARAM1") ;
- if(m_vHealExamFlag == "") {
- m_vHealExamFlag = fGetHealExamFlag();
- }
- }
- else {
- m_vHealExamFlag = fGetHealExamFlag();
- }
- var vHealExamDetlFg = fGetHealExamDetlFlag();
- var vHeDetlFg = "A0069";
- if( m_vHealExamFlag == "G") {
- vHeDetlFg = "A0070";
- cmb_srchhealexamdetlflag.choices.itemset.attribute("nodeset") = "/root/init/baseinfo/hedetlflaglst/A0070" ;
- }
- //건진분류(종건/일건) , 건진상태구분, 계약종류
- zbcfGetCodeList( new Array( "A0068" ,"A0107","A0113", vHeDetlFg ),
- new Array ("/root/init/baseinfo/healexamflag"
- ,"/root/init/baseinfo/statlst"
- ,"/root/init/baseinfo/contypelst"
- ,"/root/init/baseinfo/hedetlflaglst") );
- submit("TRZBC00101");
-
- healGetCodeList( new Array("R001" ),
- new Array("/root/init/baseinfo/initaddrinfo") );
- model.makeValue("/root/init/addrinfo/CF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CF1']/cdnm"));
- model.makeValue("/root/init/addrinfo/CP1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP1']/cdnm"));
- if (vHealExamDetlFg == 'C01') {
- model.makeValue("/root/init/addrinfo/CP2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP2']/cdnm"));
- } else if (vHealExamDetlFg == 'C03') {
- model.makeValue("/root/init/addrinfo/CP2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP4']/cdnm"));
- } else {
- model.makeValue("/root/init/addrinfo/CP2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP2']/cdnm"));
- }
- model.makeValue("/root/init/addrinfo/E01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E01']/cdnm"));
- model.makeValue("/root/init/addrinfo/E02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E02']/cdnm"));
- model.makeValue("/root/init/addrinfo/E03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E03']/cdnm"));
- model.makeValue("/root/init/addrinfo/E04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E04']/cdnm"));
- model.makeValue("/root/init/addrinfo/K01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K01']/cdnm"));
- model.makeValue("/root/init/addrinfo/K02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K02']/cdnm"));
- model.makeValue("/root/init/addrinfo/K03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K03']/cdnm"));
- model.makeValue("/root/init/addrinfo/K04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K04']/cdnm"));
- model.makeValue("/root/init/addrinfo/PV1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV1']/cdnm"));
- model.makeValue("/root/init/addrinfo/PV2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV2']/cdnm"));
- model.makeValue("/root/init/addrinfo/VF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'VF1']/cdnm"));
-
- // 병원로고 통합 관련 프로그램 수정(2016/10/31 이정택)
- if(getUserInfo("dutplceinstcd")=='031'){
- model.makeValue("/root/init/addrinfo/logoimg", getImageURL("img_logo031"));
- model.makeValue("/root/init/addrinfo/logo001", getImageURL("logo031"));
- }else if(getUserInfo("dutplceinstcd")=='032'){
- model.makeValue("/root/init/addrinfo/logoimg", getImageURL("img_logo032"));
- model.makeValue("/root/init/addrinfo/logo001", getImageURL("logo032"));
- }else{
- model.makeValue("/root/init/addrinfo/logoimg", getImageURL("cmc"));
- model.makeValue("/root/init/addrinfo/logo001", getImageURL("logo001"));
- }
- // 병원로고 통합 관련 프로그램 수정(2016/10/31 이정택)
-
- cmb_srchhealexamdetlflag.refresh();
- cmb_srchhealexamdetlflag.select(0) ;
- if(m_vHealExamFlag == "C"){
- caption4.attribute("visibility") = "hidden";
- cmb_type.attribute("visibility") = "hidden";
- }else{
- cmb_type.select(0) ;
- }
- }
- /*=======================================================================================
- *초기화
- =======================================================================================*/
- function fInitInfo(){
- var cur_date = getCurrentDate() ;
- model.setValue( ipt_srchfromdd.attribute("ref") , cur_date) ;
- model.setValue(ipt_srchtodd.attribute("ref") , cur_date) ;
-
- model.removeNodeset(grd_contlst.nodeset);
- model.removeNodeset(grd_prntlst.nodeset);
- grd_prntlst.fixedcellcheckbox(0,1) = true;
- chk_preview.select(0);
- grd_contlst.fixedcellcheckbox(0 , grd_contlst.colRef("sel")) = true;
- var vHealExamDetlFg = fGetHealExamDetlFlag();
- var sDetlFg = "/root/init/baseinfo/hedetlflaglst/A0069";
- var nodelist = instance1.selectNodes(sDetlFg);
- if( nodelist.length > 0 ){
- cmb_srchhealexamdetlflag.value = vHealExamDetlFg;
- }
-
- model.refresh();
- }
- /**
- * 계약정보리스트 조회
- * bMode : true=> 계약기간별 업체코드/업체명별 조회, false => 해당 업체 코드의 전체 계약내역 조회
- *
- */
- function fGetConInfoList(){
- model.removeNodeset("/root/temp/coninfolst");
- model.setValue("/root/send/srchhealexamflag", m_vHealExamFlag );
- //계약기간별 /업체별 조회
-
- model.setValue("/root/send/srchcond", "" );
- model.setValue("/root/send/srchcmpycd" ,model.getValue(ipt_srchcmpycd.attribute("ref") ) );
- model.setValue("/root/send/srchcmpynm" ,model.getValue(ipt_srchcmpynm.attribute("ref") ) );
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
-
- openLoadingBar("계약정보리스트 ") ;//처리중 화면을 오픈한다.
- submit("TRAHR00907");
- closeLoadingBar() ;//처리중 화면을 close한다.
-
- }
- /**=======================================================================================
- * 건진 결과 출력 대상자 리스트 조회
- =======================================================================================*/
- function fGetPrntPatList(){
- model.removeNode("/root/main/detlinfo/prntpatlst");//클리어 노드
- var vHealExamFg = m_vHealExamFlag ; //fGetHealExamFlag();
- if(vHealExamFg != "C"){
- vHealExamFg = "G";
- }
-
- if( vHealExamFg == "" ) return ;
-
- model.setValue("/root/send/srchhealexamflag" , vHealExamFg);
- model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd"));
- var vNd = instance1.selectNodes(grd_contlst.nodeset + "[sel='Y']");
- var rCSV = getNodeListCSV(vNd);
-
- model.resetInstanceNode("/root/send/srchcontinfo" );
- model.setValue("/root/send/srchcontinfo" , rCSV);
- model.setValue("/root/send/srchpid" ,model.getValue(ipt_pid.attribute("ref")) );
-
- if(ipt_pid.currentText != ""){
- model.setValue("/root/send/srchddn", "Y");
- }else{
- model.setValue("/root/send/srchddn", "");
- model.setValue("/root/temp/send/hngnm","");
- }
- chk_srchddn.refresh();
-
- openLoadingBar("건진 결과 출력 대상자 리스트 ") ;//처리중 화면을 오픈한다.
- submit("TRAHR00901");
- closeLoadingBar() ;//처리중 화면을 close한다.
- }
- /**=======================================================================================
- * 단체선택시 컨트롤 초기화
- =======================================================================================*/
- function fSetCmpyCtrl(bDisable){
- ipt_srchcmpycd.value = "";
- ipt_srchcmpynm.value = "";
-
- ipt_srchcmpycd.disabled = bDisable;
- // ipt_srchcmpynm.disabled= bDisable;
- btn_selcmpycd.disabled = bDisable;
-
- model.removeNodeset(grd_contlst.nodeset);
- if( bDisable == false ){
- model.setFocus("ipt_srchcmpycd");
- }
- //자동판정은 서울성모만 해당.
- var logoinstcd = getUserInfo("dutplceinstcd");
- if(logoinstcd != "012"){
- button7.disabled = true;
- button6.disabled = true;
- }
-
- grd_contlst.refresh();
- }
- /**=======================================================================================
- @desc : 결과지 출력
- =======================================================================================*/
- function fPrintRslt(){
- var sHealExamFlag = fGetHealExamFlag() ;
- if( sHealExamFlag == "C" ){
- //종건출력
- fColgRsltPrnt();
- }
- else {
- if(cmb_type.value == "0"){
- //1차일건출력
- fGnrlRsltPrnt();
- }else{
- //2차일건출력
- fGnrlRsltPrnt2();
- }
- }
- }
-
- /**=======================================================================================
- @desc : 결과지 새로운 양식출력
- =======================================================================================*/
- function fNewPrintRslt() {
- var sHealExamFlag = fGetHealExamFlag() ;
- if( sHealExamFlag == "C" ){
- setParameter("reportprintyn", ""); //출력여부 확인하기
- var language = model.getValue("/root/temp/language");
- var nodeList = instance1.selectNodes(grd_prntlst.nodeset + "[sel='Y']");
- var ret = false;
-
- for( var i = 0 ; i < nodeList.length ; i++){
- model.setValue("/root/send/srchhealexamflag", nodeList.item(i).healexamflag.text ); //건진구분
- model.setValue("/root/send/srchhealexamdetlflag", nodeList.item(i).healexamdetlflag.text ); //건진상세구분
- model.setValue("/root/send/srchrsrvdd", nodeList.item(i).rsrvdd.text ); //예약등록일자
- model.setValue("/root/send/srchrsrvno", nodeList.item(i).rsrvno.text ); //예약등록번호
- model.setValue("/root/send/srchpid", nodeList.item(i).pid.text ); //등록번호
- model.setValue("/root/send/srchorddd", nodeList.item(i).orddd.text ); //건진일자
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") ); //기관코드
- model.setValue("/root/send/srchlangflag", language ); //언어구분: 한글버전
- model.removeNodeset("/root/temp/colgprntinfo");
- //그리드에 뿌려주기
- ret = submit("TRAHR00909");
-
- if( (ret == true ) && (instance1.selectNodes("/root/temp/colgprntinfo/itemrslt") != null ) ) {
-
- //결과출력
- model.makeNode("/root/temp/colgprntinfo/itemjudg/judgcnts2");
- model.makeNode("/root/temp/colgprntinfo/iteminfo/pid");
- model.makeNode("/root/temp/colgprntinfo/iteminfo/pnm");
- model.makeNode("/root/temp/colgprntinfo/iteminfo/sexage");
- model.makeNode("/root/temp/colgprntinfo/iteminfo/orddd");
- model.makeNode("/root/temp/colgprntinfo/iteminfo/hopedd");
- model.makeNode("/root/temp/colgprntinfo/iteminfo/brthdd");
- model.makeNode("/root/temp/colgprntinfo/iteminfo/rrgstno")
- model.makeNode("/root/temp/colgprntinfo/itemjudg/judgdrnm")
- model.makeNode("/root/temp/colgprntinfo/itemjudg/nexthealexamdd")
-
- var nexthealexamdd = nodeList.item(i).hopedd.text;
- nexthealexamdd = nexthealexamdd.toDate().getAddDate(1,"Y").getDateFormat("YYYYMMDD") ;
-
- //alert("pid : " + nodeList.item(i).pid.text);
-
- model.setValue("/root/temp/colgprntinfo/iteminfo/pid", nodeList.item(i).pid.text );
- model.setValue("/root/temp/colgprntinfo/iteminfo/pnm", nodeList.item(i).hngnm.text );
- model.setValue("/root/temp/colgprntinfo/iteminfo/sexage", nodeList.item(i).sexage.text );
- model.setValue("/root/temp/colgprntinfo/iteminfo/orddd", nodeList.item(i).orddd.text );
- model.setValue("/root/temp/colgprntinfo/iteminfo/hopedd", nodeList.item(i).hopedd.text );
- model.setValue("/root/temp/colgprntinfo/iteminfo/brthdd", nodeList.item(i).brthdd.text );
- model.setValue("/root/temp/colgprntinfo/iteminfo/rrgstno", nodeList.item(i).rgstno.text );
- //model.setValue("/root/temp/colgprntinfo/itemjudg/judgdrnm", nodeList.item(i).judgdrnm.text);
- model.setValue("/root/temp/colgprntinfo/itemjudg/nexthealexamdd", nexthealexamdd);
-
- var bDirectPrnt = "true";
- if( chk_preview.value == "Y" ){
- bDirectPrnt = "false";
- }
- var vPrntFg = cmb_prntflag.value ;
- model.removeNodeset("/root/send/updata/req/item");
-
- if( vPrntFg != "paper" ) {
- if(language == "H") {
- exeReportPreview("RPAHR00901", "XMLSTR" , "" , "" , true /*출력여부*/ , "" , vPrntFg /*저장타입*/, nodeList.item(i).pid.text + "-" + nodeList.item(i).hngnm.text /*파일명*/ , "", false );
- }else {
- exeReportPreview("RPAHR00905", "XMLSTR" , "" , "" , true /*출력여부*/ , "" , vPrntFg /*저장타입*/, nodeList.item(i).pid.text + "-" + nodeList.item(i).hngnm.text /*파일명*/ , "", false );
- }
-
- } else {
- if (bDirectPrnt == "false") { //미리보기
- if(language == "H") {
- exeReportPreview("RPAHR00906", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
- }else {
- exeReportPreview("RPAHR00906", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
- }
-
- } else {
- if(language == "H") {
- exeReportPreview("RPAHR00906", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
- }else {
- exeReportPreview("RPAHR00906", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
- }
- }
- }
- }
- }
- if (getParameter("reportprintyn") == "Y"){ // 출력했으면..
- for( var i = 0 ; i <= grd_prntlst.rows ; i++){
- if(grd_prntlst.valueMatrix(i,grd_prntlst.colRef("sel")) == "Y") {
- copyNodeListType("/root/send/updata/req", "/root/main/detlinfo/prntpatlst/item["+ i +"]", "after");
- }
- }
- submit("TXAHR01003");
- }
- }
- }
- /**=======================================================================================
- @desc : 의사소견 결과지 출력
- =======================================================================================*/
- function fDrOpnPrintRslt(){
- setParameter("reportprintyn", ""); //출력여부 확인하기
- var language = model.getValue("/root/temp/language");
- var nodeList = instance1.selectNodes(grd_prntlst.nodeset + "[sel='Y']");
- var ret = false;
- for( var i = 0 ; i < nodeList.length ; i++){
- model.makeValue("/root/send_05400/reqdata/srchhealexamflag", nodeList.item(i).healexamflag.text ); //건진구분
- model.makeValue("/root/send_05400/reqdata/srchhealexamdetlflag", nodeList.item(i).healexamdetlflag.text ); //건진상세구분
- model.makeValue("/root/send_05400/reqdata/srchrsrvdd", nodeList.item(i).rsrvdd.text ); //예약등록일자
- model.makeValue("/root/send_05400/reqdata/srchrsrvno", nodeList.item(i).rsrvno.text ); //예약등록번호
- model.makeValue("/root/send_05400/reqdata/srchpid", nodeList.item(i).pid.text ); //등록번호
- model.makeValue("/root/send_05400/reqdata/srchinstcd", getUserInfo("dutplceinstcd") ); //기관코드
- // model.makeValue("/root/send_05300/reqdata/srchlangflag", rdo_language.value); //건진구분
- model.makeValue("/root/send_05400/reqdata/srchhopedd", nodeList.item(i).hopedd.text );
- model.makeValue("/root/send_05400/reqdata/srchhngnm", nodeList.item(i).hngnm.text );
- model.makeValue("/root/send_05400/reqdata/srchsex", nodeList.item(i).sex.text );
- model.makeValue("/root/send_05400/reqdata/srchage", nodeList.item(i).age.text );
- model.makeValue("/root/send_05400/reqdata/srchflag" , 'prt');
-
-
- //그리드에 뿌려주기
- ret = submit("TRAHB05402");
-
-
- var logoinstcd = getUserInfo("dutplceinstcd");
- var getinstcd = "MIS" + logoinstcd;
- var logourl = getBigLogoImageURL("", getinstcd);
-
- //model.alert(logourl);
-
- model.makeValue("/root/main/prt/lstopn/item13", logourl);
-
-
- exeReportPreview("RPAHB05402", "XMLSTR", "/root/main/prt", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
- }
- }
- /**=======================================================================================
- @desc : 종합건진 결과지 출력
- =======================================================================================*/
- function fColgRsltPrnt(){
- setParameter("reportprintyn", ""); //출력여부 확인하기
- var language = model.getValue("/root/temp/language");
- var nodeList = instance1.selectNodes(grd_prntlst.nodeset + "[sel='Y']");
- var ret = false;
-
- for( var i = 0 ; i < nodeList.length ; i++){
- model.setValue("/root/send/srchhealexamflag", nodeList.item(i).healexamflag.text ); //건진구분
- model.setValue("/root/send/srchhealexamdetlflag", nodeList.item(i).healexamdetlflag.text ); //건진상세구분
- model.setValue("/root/send/srchrsrvdd", nodeList.item(i).rsrvdd.text ); //예약등록일자
- model.setValue("/root/send/srchrsrvno", nodeList.item(i).rsrvno.text ); //예약등록번호
- model.setValue("/root/send/srchpid", nodeList.item(i).pid.text ); //등록번호
- model.setValue("/root/send/srchorddd", nodeList.item(i).orddd.text ); //건진일자
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") ); //기관코드
- model.setValue("/root/send/srchlangflag", language ); //언어구분: 한글버전
- model.removeNodeset("/root/temp/colgprntinfo");
- //그리드에 뿌려주기
- ret = submit("TRAHR00902");
- if( (ret == true ) && (instance1.selectNodes("/root/temp/colgprntinfo/itemrslt") != null ) ) {
- //결과출력
- model.makeNode("/root/temp/colgprntinfo/iteminfo/pid");
- model.makeNode("/root/temp/colgprntinfo/iteminfo/pnm");
- model.makeNode("/root/temp/colgprntinfo/iteminfo/sexage");
- model.makeNode("/root/temp/colgprntinfo/iteminfo/orddd");
- model.makeNode("/root/temp/colgprntinfo/iteminfo/hopedd");
- model.makeNode("/root/temp/colgprntinfo/iteminfo/brthdd");
- model.makeNode("/root/temp/colgprntinfo/iteminfo/rrgstno")
- model.makeNode("/root/temp/colgprntinfo/itemjudg/judgdrnm")
- model.makeNode("/root/temp/colgprntinfo/itemjudg/nexthealexamdd")
-
- var nexthealexamdd = nodeList.item(i).hopedd.text;
- nexthealexamdd = nexthealexamdd.toDate().getAddDate(1,"Y").getDateFormat("YYYYMMDD") ;
- //alert("pid : " + nodeList.item(i).pid.text);
- var judgcntsarr = model.getValue("/root/temp/colgprntinfo/itemjudg/judgcnts").split("\n");
- for(var idx = 0; idx < judgcntsarr.length; idx++){
- model.makeValue("/root/temp/colgprntinfo/itemjudg/judgcntsinfo"+"["+ (idx+1) +"]/judg",judgcntsarr[idx] );
- }
- model.setValue("/root/temp/colgprntinfo/iteminfo/pid", nodeList.item(i).pid.text );
- model.setValue("/root/temp/colgprntinfo/iteminfo/pnm", nodeList.item(i).hngnm.text );
- model.setValue("/root/temp/colgprntinfo/iteminfo/sexage", nodeList.item(i).sexage.text );
- model.setValue("/root/temp/colgprntinfo/iteminfo/orddd", nodeList.item(i).orddd.text );
- model.setValue("/root/temp/colgprntinfo/iteminfo/hopedd", nodeList.item(i).hopedd.text );
- model.setValue("/root/temp/colgprntinfo/iteminfo/brthdd", nodeList.item(i).brthdd.text );
- model.setValue("/root/temp/colgprntinfo/iteminfo/rrgstno", nodeList.item(i).rgstno.text );
- //model.setValue("/root/temp/colgprntinfo/itemjudg/judgdrnm", nodeList.item(i).judgdrnm.text);
- model.setValue("/root/temp/colgprntinfo/itemjudg/nexthealexamdd", nexthealexamdd);
-
- var bDirectPrnt = "true";
- if( chk_preview.value == "Y" ){
- bDirectPrnt = "false";
- }
- var vPrntFg = cmb_prntflag.value ;
- model.removeNodeset("/root/send/updata/req/item");
-
- var instcd = getUserInfo("dutplceinstcd");
-
- if( vPrntFg != "paper" ) {
- if(language == "H") {
- //alert("결과출력H");
- if(instcd=="031"){
- exeReportPreview("RPAHR00940", "XMLSTR" , "" , "" , "false" /*출력여부*/ , "false" , vPrntFg /*저장타입*/, nodeList.item(i).pid.text + "-" + nodeList.item(i).hngnm.text + "." + vPrntFg /*파일명*/ , "0", "true" );
- }else if(instcd=="032"){
- exeReportPreview("RPAHR00901", "XMLSTR" , "" , "" , "false" /*출력여부*/ , "false" , vPrntFg /*저장타입*/, nodeList.item(i).pid.text + "-" + nodeList.item(i).hngnm.text + "." + vPrntFg /*파일명*/ , "0", "true" );
- }
- //exeReportPreview("RPAHR00901", "XMLSTR" , "" , "" , "false" /*출력여부*/ , "false" , vPrntFg /*저장타입*/, nodeList.item(i).pid.text + "-" + nodeList.item(i).hngnm.text + "." + vPrntFg /*파일명*/ , "0", "true" );
- }else {
- //alert("결과출력E");
- exeReportPreview("RPAHR00905", "XMLSTR" , "" , "" , "" /*출력여부*/ , "" , vPrntFg /*저장타입*/, nodeList.item(i).pid.text + "-" + nodeList.item(i).hngnm.text + "." + vPrntFg /*파일명*/ , "", false );
- }
-
- } else {
- if (bDirectPrnt == "false") { //미리보기
- if(language == "H") {
- if(instcd=="031"){
- exeReportPreview("RPAHR00940", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
- }else if(instcd=="032"){
- exeReportPreview("RPAHR00901", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
- }
- //exeReportPreview("RPAHR00901", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
- }else {
- exeReportPreview("RPAHR00905", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
- }
-
- } else {
- if(language == "H") {
- if(instcd=="031"){
- exeReportPreview("RPAHR00940", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
- }else if(instcd=="032"){
- exeReportPreview("RPAHR00901", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
- }
- //exeReportPreview("RPAHR00901", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
- }else {
- exeReportPreview("RPAHR00905", "XMLSTR", "root/temp/colgprntinfo/itemrslt", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
- }
- }
- }
- }
- }
- if (getParameter("reportprintyn") == "Y"){ // 출력했으면..
- for( var i = 0 ; i <= grd_prntlst.rows ; i++){
- if(grd_prntlst.valueMatrix(i,grd_prntlst.colRef("sel")) == "Y") {
- copyNodeListType("/root/send/updata/req", "/root/main/detlinfo/prntpatlst/item["+ i +"]", "after");
- }
- }
- submit("TXAHR01003");
- }
- }
- /**=======================================================================================
- @desc : 종합건진 단체결과지 출력
- =======================================================================================*/
- function fCmpyColgRsltPrnt() {
-
- var nodeList = instance1.selectNodes(grd_prntlst.nodeset + "[sel='Y']");
- var ret = false;
-
- for( var i = 0 ; i < nodeList.length ; i++){
- model.setValue("/root/send/srchhealexamflag", nodeList.item(i).healexamflag.text ); //건진구분
- model.setValue("/root/send/srchhealexamdetlflag", nodeList.item(i).healexamdetlflag.text ); //건진상세구분
- model.setValue("/root/send/srchrsrvdd", nodeList.item(i).rsrvdd.text ); //예약등록일자
- model.setValue("/root/send/srchrsrvno", nodeList.item(i).rsrvno.text ); //예약등록번호
- model.setValue("/root/send/srchpid", nodeList.item(i).pid.text ); //등록번호
- model.setValue("/root/send/srchorddd", nodeList.item(i).orddd.text ); //건진일자
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") ); //기관코드
- model.setValue("/root/send/srchlangflag", "H" ); //언어구분: 한글버전
- model.removeNodeset("/root/report/cmpyrslt");
- //그리드에 뿌려주기
- ret = submit("TRAHR00905");
-
- model.makeNode("/root/report/iteminfo/pid");
- model.makeNode("/root/report/iteminfo/pnm");
- model.makeNode("/root/report/iteminfo/sexage");
- model.makeNode("/root/report/iteminfo/orddd");
- model.makeNode("/root/report/iteminfo/hopedd");
- model.makeNode("/root/report/iteminfo/brthdd");
- model.makeNode("/root/report/iteminfo/rrgstno")
- model.makeNode("/root/report/itemjudg/judgdrnm")
- model.makeNode("/root/report/itemjudg/nexthealexamdd")
- var nexthealexamdd = nodeList.item(i).orddd.text;
- nexthealexamdd = nexthealexamdd.toDate().getAddDate(1,"Y").getDateFormat("YYYYMMDD") ;
- //alert("pid : " + nodeList.item(i).pid.text);
-
- model.setValue("/root/report/iteminfo/pid", nodeList.item(i).pid.text );
- model.setValue("/root/report/iteminfo/pnm", nodeList.item(i).hngnm.text );
- model.setValue("/root/report/iteminfo/sexage", nodeList.item(i).sexage.text );
- model.setValue("/root/report/iteminfo/orddd", nodeList.item(i).orddd.text );
- model.setValue("/root/report/iteminfo/hopedd", nodeList.item(i).hopedd.text );
- model.setValue("/root/report/iteminfo/brthdd", nodeList.item(i).brthdd.text );
- model.setValue("/root/report/iteminfo/rrgstno", nodeList.item(i).rgstno.text );
- model.setValue("/root/report/itemjudg/judgdrnm", nodeList.item(i).judgdrnm.text);
- model.setValue("/root/report/itemjudg/nexthealexamdd", nexthealexamdd);
-
- var bDirectPrnt = "true";
- if( chk_preview.value == "Y" ){
- bDirectPrnt = "false";
- }
- var vPrntFg = cmb_prntflag.value ;
- model.removeNodeset("/root/send/updata/req/item");
-
- if( vPrntFg != "paper" ) {
- exeReportPreview("RPAHR00902", "XMLSTR" , "" , "" , true /*출력여부*/ , "" , vPrntFg /*저장타입*/, nodeList.item(i).pid.text + "-" + nodeList.item(i).hngnm.text /*파일명*/ , "", false );
-
- } else {
- if (bDirectPrnt == "false") { //미리보기
- exeReportPreview("RPAHR00902", "XMLSTR", "root/report","", "false","","","","","false");
- } else {
- exeReportPreview("RPAHR00902", "XMLSTR", "root/report", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
- }
- }
- }
- if (getParameter("reportprintyn") == "Y"){ // 출력했으면..
- for( var i = 0 ; i <= grd_prntlst.rows ; i++){
- if(grd_prntlst.valueMatrix(i,grd_prntlst.colRef("sel")) == "Y") {
- copyNodeListType("/root/send/updata/req", "/root/main/detlinfo/prntpatlst/item["+ i +"]", "after");
- }
- }
- submit("TXAHR01003");
- }
- }
-
- function fCmpyColgRsltExcel(maxcnt, colk,gubun)
- {
- var nodeList = instance1.selectNodes(grd_prntlst.nodeset + "[sel='Y']");
- // 수정이력 : 20100402 JHP 환자번호로 조회시 다른곳에서 사용하는 서브밋과 겹쳐서 오류발생 다른것으로 변경 시작
- // model.setValue("/root/temp/send/excelparam", getNodeListCSV (nodeList)); // 원래것.
- model.setValue("/root/temp/send0/excelparam", getNodeListCSV (nodeList));
- // 수정이력 : 20100402 JHP 환자번호로 조회시 다른곳에서 사용하는 서브밋과 겹쳐서 오류발생 다른것으로 변경 끝
- //var ret = submit("TRAHR00906");
- var ret = submit("TRAHR00911");
- datagrid1.insertRow(0, "below");
- var irow = datagrid1.row;
- var icnt = parseInt(getNodesetCount("/root/main1/titleinfo/cmt")) + 1;
- model.setValue("/root/exceldata/comexcellst/item[" + irow + "]/cmpynm", "단체회사명");
- model.setValue("/root/exceldata/comexcellst/item[" + irow + "]/contype", "계약명");
- model.setValue("/root/exceldata/comexcellst/item[" + irow + "]/famyrelacd", "관계(본인/배우자/가족)");
- model.setValue("/root/exceldata/comexcellst/item[" + irow + "]/pid", "등록번호");
- model.setValue("/root/exceldata/comexcellst/item[" + irow + "]/hngnm", "성명");
- model.setValue("/root/exceldata/comexcellst/item[" + irow + "]/rrgstno", "주민등록번호");
- model.setValue("/root/exceldata/comexcellst/item[" + irow + "]/hopedd", "건진일자");
- //if(gubun=="auto"){
- model.setValue("/root/exceldata/comexcellst/item[" + irow + "]/grade", "결과등급");
- //}
- model.setValue("/root/exceldata/comexcellst/item[" + irow + "]/judg", "종합판정");
- model.setValue("/root/exceldata/comexcellst/item[" + irow + "]/judgd", "단문판정");
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 첫번째 컬럼에 한글제목넣기 시작
- if(maxcnt != 0){
- var judgcol = colk+1;
- for(var n = 0; n < maxcnt; n++){
- var nn = judgcol + n;
- var datacol = "data" + nn;
- model.setValue("/root/exceldata/comexcellst/item[" + irow + "]/" + datacol +"", "질환" + (n+1) + "");
- }
- }
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 첫번째 컬럼에 한글제목넣기 끝
-
- var title = "";
- for (var i = 1; i < icnt; i++){
- title = model.getValue("/root/main1/titleinfo[" + i + "]/cdnm");
- datagrid1.valueMatrix(irow, i + 6) = title;
- }
-
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 2. 질환구분자갯수만큼값셋팅하기 시작
- var gridrows = datagrid1.rows;
- var gridfrow = datagrid1.fixedRows;
- var gridnrow = gridrows - gridfrow;
-
- var coliset = colk + maxcnt;
- var maxcoliset = colk + maxcnt + maxcnt;
- var chngno = 0;
- var no = 0;
- var colno = 0;
- var isetset = 1;
-
- for(var r = 2; r <= gridnrow; r++){
- var opid = model.getValue("/root/exceldata/comexcellst/item[" + r + "]/pid");
- var ohopedd = model.getValue("/root/exceldata/comexcellst/item[" + r + "]/hopedd");
- var judgcol2 = colk+1;
- for(var n2 = colno; n2 < maxcnt; n2++){
- var nn2 = judgcol2 + n2;
- var datacol2 = "data" + nn2;
- no = model.getValue("/root/exceldata/comexceljillist/item[" + isetset + "]/no");
- var tpid = model.getValue("/root/exceldata/comexceljillist/item[" + isetset + "]/pid");
- var thopedd = model.getValue("/root/exceldata/comexceljillist/item[" + isetset + "]/hopedd");
- var sickcd = model.getValue("/root/exceldata/comexceljillist/item[" + isetset + "]/sickcd");
- if(no != chngno){
- chngno++;
- break;
- }else{
- isetset++;
- }
- if(opid == tpid && ohopedd == thopedd){
- model.setValue("/root/exceldata/comexcellst/item[" + r + "]/" + datacol2 +"", sickcd);
- }
- }
-
- }
- // 2010.06.28 mykim. 자동판정인경우에만 결과등급을 보여주도록 함.
- if(gubun=="com"){
- datagrid1.colHidden(datagrid1.colRef("grade")) = true;
- }
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 2. 질환구분자갯수만큼값셋팅하기 끝
- model.refresh();
- if(ret)
- {
- for(var i = 1; i <= datagrid1.rows; i++) {
- datagrid1.valueMatrix(i , datagrid1.colRef("judg")) = datagrid1.valueMatrix(i , datagrid1.colRef("judg")).replace(/\\r/gm, "");
- }
-
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- datagrid1.saveExcel(fileName);
- }
- }
-
- function fCmpyColgRsltLGExcel() {
- var nodeList = instance1.selectNodes(grd_prntlst.nodeset + "[sel='Y']");
- model.setValue("/root/temp/send/excelparam", getNodeListCSV (nodeList));
- var ret = submit("TRAHR00908");
- model.refresh();
- if(ret)
- {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- datagrid2.saveExcel(fileName);
- }
- }
- /**=======================================================================================
- @desc : 일반건진 결과지 출력, 일건-공단건진의 경우 패키지의 결과지 분류로 1,2차, 구강,암
- 결과지 구분필요.
- =======================================================================================*/
- function fGnrlRsltPrnt(){
- var fst = grd_prntlst.rows;
- var sel = "";
- for(var i=0 ; i < fst ; i++){
- sel = model.getValue("/root/main/detlinfo/prntpatlst/item[" + i + "]/sel");
- if(sel == "Y"){
- model.setValue("/root/send/srchhealexamflag" , fGetHealExamFlag() ); //건진구분
- model.setValue("/root/send/srchpid" , model.getValue(grd_prntlst.nodeset + "[" + i + "]/pid") ); //등록번호
- model.setValue("/root/send/srchrsrvdd" , model.getValue(grd_prntlst.nodeset + "[" + i + "]/rsrvdd") ); //건진예약등록일자
- model.setValue("/root/send/srchrsrvno" , model.getValue(grd_prntlst.nodeset + "[" + i + "]/rsrvno") ); //건진예약등록번호
- model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") ); //기관코드
- model.removeNodeset("/root/main/fstrsltinfo");
- ret = submit("TRAHR00903");
-
- //예외처리
- if( (ret == true ) && (instance1.selectNodes("/root/main/fstrsltinfo/itemasso") != null ) ) {
-
- //환자정보
- model.makeNode("/root/main/fstrsltinfo/itemasso/hngnm");
- model.makeNode("/root/main/fstrsltinfo/itemasso/rgstno");
- model.makeNode("/root/main/fstrsltinfo/itemasso/addr");
- model.makeNode("/root/main/fstrsltinfo/itemasso/detladdr");
- model.makeNode("/root/main/fstrsltinfo/itemasso/zipcd1");
- model.makeNode("/root/main/fstrsltinfo/itemasso/zipcd2");
-
- model.setValue("/root/main/fstrsltinfo/itemasso/hngnm" ,model.getValue(grd_prntlst.nodeset + "[" + i + "]/hngnm") );
- model.setValue("/root/main/fstrsltinfo/itemasso/rgstno" ,model.getValue(grd_prntlst.nodeset + "[" + i + "]/rgstno") );
- model.setValue("/root/main/fstrsltinfo/itemasso/addr" ,model.getValue(grd_prntlst.nodeset + "[" + i + "]/addr") );
- model.setValue("/root/main/fstrsltinfo/itemasso/detladdr" ,model.getValue(grd_prntlst.nodeset + "[" + i + "]/detladdr") );
- model.setValue("/root/main/fstrsltinfo/itemasso/zipcd1" ,model.getValue(grd_prntlst.nodeset + "[" + i + "]/zipcd1") );
- model.setValue("/root/main/fstrsltinfo/itemasso/zipcd2" ,model.getValue(grd_prntlst.nodeset + "[" + i + "]/zipcd2") );
-
- nodeList= null;
- nodeList= instance1.selectNodes("/root/main/fstrsltinfo/itemasso");
- if((nodeList != null)||(nodeList.length >0 )){
- if(chk_preview.value == "Y"){
- exeReportPreview("RPAHR00903", "XMLSTR");
- }
- else {
- exeReportPreview("RPAHR00903", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
- }
- }
- }
- }
- }
- }
-
- /**=======================================================================================
- @desc : 2차 일반건진 결과판정 출력
- =======================================================================================*/
- function fGnrlRsltPrnt2(){
- var fst = grd_prntlst.rows;
- var sel = "";
- for(var i=0 ; i < fst ; i++){
- sel = model.getValue("/root/main/detlinfo/prntpatlst/item[" + i + "]/sel");
- if(sel == "Y"){
- model.setValue("/root/send/srchhealexamflag" , fGetHealExamFlag() ); //건진구분
- model.setValue("/root/send/srchpid" , model.getValue(grd_prntlst.nodeset + "[" + i + "]/pid") ); //등록번호
- model.setValue("/root/send/srchrsrvdd" , model.getValue(grd_prntlst.nodeset + "[" + i + "]/rsrvdd") ); //건진예약등록일자
- model.setValue("/root/send/srchrsrvno" , model.getValue(grd_prntlst.nodeset + "[" + i + "]/rsrvno") ); //건진예약등록번호
- model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") ); //기관코드
- model.removeNodeset("/root/main/fstrsltinfo");
- ret = submit("TRAHR00904");
-
- //예외처리
- if( (ret == true ) && (instance1.selectNodes("/root/main/fstrsltinfo/itemasso") != null ) ) {
-
- //환자정보
- model.makeNode("/root/main/fstrsltinfo/itemasso/hngnm");
- model.makeNode("/root/main/fstrsltinfo/itemasso/rgstno");
- model.setValue("/root/main/fstrsltinfo/itemasso/hngnm" ,model.getValue(grd_prntlst.nodeset + "[" + i + "]/hngnm") );
- model.setValue("/root/main/fstrsltinfo/itemasso/rgstno" ,model.getValue(grd_prntlst.nodeset + "[" + i + "]/rgstno") );
- nodeList= null;
- nodeList= instance1.selectNodes("/root/main/fstrsltinfo/itemasso");
- if((nodeList != null)||(nodeList.length >0 )){
- if(chk_preview.value == "Y"){
- exeReportPreview("RPAHR00904", "XMLSTR");
- }
- else {
- exeReportPreview("RPAHR00904", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
- }
- }
- }
- }
- }
- }
- /**=======================================================================================
- @desc : 단체결과 upload text 양식 생성
- =======================================================================================*/
- function fCmpyUploadText() {
- var seq = "_";
- var nodeList = instance1.selectNodes(grd_prntlst.nodeset + "[sel='Y']");
- model.setValue("/root/temp/send/upload", getNodeListCSV (nodeList));
- if(submit("TRAHR00912")) {
- var totalRslt = "";
- var totalJudg = "";
-
- if(getNodesetCount("/root/uploadfile/upload") > 0) {
-
- for(var i = 1; i <= getNodesetCount("/root/uploadfile/upload") ; i++) {
- totalRslt += model.getValue("/root/uploadfile/upload[" + i + "]/uploadrslt") + "\r\n";
- totalJudg += model.getValue("/root/uploadfile/upload[" + i + "]/uploadjudg") + "\r\n";
- }
-
- var folderPath = window.folderDialog("자료연계파일 생성경로");
-
- var rsltFileNm = model.getValue("/root/uploadfile/upload[1]/uploadhopnm") + seq + model.getValue("/root/send/srchcmpynm2") + seq + model.getValue("/root/send/srchfromdd") + "~" + model.getValue("/root/send/srchtodd");
- var judgFileNm = rsltFileNm + seq + "소견";
-
-
-
- fMakeFile( rsltFileNm + ".txt", totalRslt , folderPath);
- fMakeFile( judgFileNm + ".txt" , totalJudg , folderPath);
-
- }
- }
- }
-
- /****************************************************************************************************
- *** 파일을 생성한다.
- **************************************************************************************************/
-
- function fMakeFile(vFileName, vFileCont , vFolderPath ) {
- if(vFileName == null || vFileName == "") return;
- if(vFileCont == null || vFileCont == "") return;
- if(vFolderPath == null || vFolderPath == "") return;
- var folderPath = vFolderPath;
- var defaultFolder = folderPath;
- var folderExist = false;
- var fileExist = true;
- var fileCnt = 0;
-
- fso=new ActiveXObject('Scripting.FileSystemObject');
-
- // 폴더가 존재하는 체크
- if(fso.FolderExists(defaultFolder)){
- folderExist = true;
- }else {
- folderExist = false;
- fso.CreatFolder(defaultFolder);
- }
- /*
- while(fileExist) {
- // 파일이 존재하는 체크
- if(fso.FileExists(defaultFolder + "\\" + vFileName)) {
- fileCnt++;
- }else {
- if(fileCnt > 0) {
- vFileName = "(" + fileCnt + ")" + vFileName;
- }
- fileExist = false;
- }
- }*/
- filePath = defaultFolder + "\\" + vFileName;
-
- // 파일 생성
- if(filePath != "") {
- try{fso.CreateTextFile(filePath,true,true);
- file = fso.OpenTextFile(filePath,2,true);
- file.Write(vFileCont);
- }catch(err) {
- alert(err.description);
- } finally {
- file.close();
- }
- }
- }
-
- function fSelCheck() {
- for(var i=0; i <= grd_prntlst.selectedRows; i++ ) {
- grd_prntlst.valueMatrix(grd_prntlst.selectedRow(i) , grd_prntlst.colRef("sel")) = "Y";
- }
- }
-
- function fSelUnCheck() {
- for(var i=0; i <= grd_prntlst.selectedRows; i++ ) {
- grd_prntlst.valueMatrix(grd_prntlst.selectedRow(i) , grd_prntlst.colRef("sel")) = "N";
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1220" pageheight="820" guideline="1,1195;2,789;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">건강진단결과표출력</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption11" class="cell_1" style="left:227px; top:174px; width:80px; height:23px; vertical-align:middle; ">출력구분</caption>
- <line id="line2" class="line_1" style="x1:470px; y1:25px; x2:1189px; y2:25px; "/>
- <caption id="caption9" class="cell_1" style="left:2px; top:174px; width:80px; height:23px; vertical-align:middle; ">출력용지</caption>
- <select1 id="cmb_prntflag" ref="/root/main/prntoptinfo/prntflag" class="combo_default" appearance="minimal" style="left:310px; top:175px; width:154px; height:19px; ">
- <choices>
- <item>
- <label>Paper</label>
- <value>paper</value>
- </item>
- <item>
- <label>Excel</label>
- <value>xls</value>
- </item>
- <item>
- <label>PDF</label>
- <value>pdf</value>
- </item>
- <item>
- <label>HTML</label>
- <value>html</value>
- </item>
- <item>
- <label>BMP</label>
- <value>bmp</value>
- </item>
- <item>
- <label>TXT</label>
- <value>txt</value>
- </item>
- <item>
- <label>XML</label>
- <value>xml</value>
- </item>
- </choices>
- </select1>
- <line id="line15" class="line_3" style="x1:0px; y1:197px; x2:465px; y2:197px; "/>
- <caption id="caption3" class="tit_2" style="left:0px; top:155px; width:74px; height:14px; ">출력옵션</caption>
- <datagrid id="grd_contlst" nodeset="/root/main/contlst/item" caption="^단체명칭^계약종류^계약일자^단체코드^conseq^conhistseq^healexamflag" colsep="^" colwidth="55, 215, 207, 98, 100, 100, 100, 100" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:470px; top:30px; width:719px; height:165px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="cmpynm"/>
- <col disabled="true" ref="contype" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/contypelst/A0113">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="condd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cmpycd" visibility="hidden" style="text-align:center; "/>
- <col ref="conseq" visibility="hidden"/>
- <col ref="conhistseq" visibility="hidden"/>
- <col ref="healexamflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_contlst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption5" class="tit_2" style="left:4px; top:208px; width:144px; height:13px; ">상세내역</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:223px; x2:1191px; y2:223px; "/>
- <datagrid id="grd_prntlst" nodeset="/root/main/detlinfo/prntpatlst/item" caption="^출력^완료^등록번호^성명^성별^나이^주민등록번호^건진일자^자동판정일^orddd^상태^건진코드^건진명^단체명^근무부서^rsrvdd^rsrvno^healexamflag^healexamdetlflag^uncoflag^출력여부^출력횟수^출력자^출력일시^판정의^sexage^caption2^caption3^caption4^caption5^caption1" colsep="^" colwidth="55, 46, 45, 95, 100, 40, 40, 134, 100, 100, 0, 100, 100, 100, 123, 65, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:230px; width:1190px; height:510px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col disabled="true" ref="prntyn" type="checkbox"/>
- <col disabled="true" ref="endyn" type="checkbox" visibility="hidden"/>
- <col ref="pid"/>
- <col ref="hngnm" type="input"/>
- <col ref="sex" style="left:347px; top:23px; width:69px; height:23px; text-align:center; "/>
- <col ref="age" style="left:347px; top:23px; width:69px; height:23px; text-align:center; "/>
- <col ref="rgstno" format="999999-9999999" style="text-align:center; "/>
- <col ref="hopedd" format="yyyy-mm-dd"/>
- <col ref="ajcreatdd" format="yyyy-mm-dd hh:nn"/>
- <col ref="orddd" visibility="hidden"/>
- <col disabled="true" ref="statflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/statlst/A0107">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pkgcd"/>
- <col ref="pkgnm"/>
- <col ref="cmpynm"/>
- <col ref="deptnm" style="left:1098px; top:23px; width:65px; height:23px; "/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <col ref="uncoflag" visibility="hidden"/>
- <col ref="prntyn" style="text-align:center; "/>
- <col ref="prnttims" style="text-align:right; "/>
- <col ref="prntrid"/>
- <col ref="prnttm"/>
- <col ref="judgdrnm"/>
- <col ref="sexage"/>
- <col ref="engnm" visibility="hidden"/>
- <col ref="uncoflag" visibility="hidden"/>
- <col ref="detladdr" visibility="hidden"/>
- <col ref="addr" visibility="hidden"/>
- <col ref="brthdd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_prntlst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3) {
- if(isDataCell()) {
- setPopupMenu("grd_prntlst", false, "/root/temp/popupmenu/item", "name", "func");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <select1 id="combo1" ref="/root/main/prntoptinfo/prntsize" class="combo_default" disabled="true" appearance="minimal" style="left:85px; top:175px; width:139px; height:19px; ">
- <choices>
- <item>
- <label>A4</label>
- <value>01</value>
- </item>
- </choices>
- </select1>
- <line id="line1" class="line_1" style="x1:0px; y1:170px; x2:465px; y2:170px; "/>
- <group id="group2" style="left:0px; top:10px; width:465px; height:160px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:465px; height:160px; "/>
- <caption id="caption10" class="search_name" style="left:5px; top:44px; width:91px; height:17px; ">건진기간 :</caption>
- <input id="ipt_srchfromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:92px; top:43px; width:100px; height:19px; "/>
- <input id="ipt_srchtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:220px; top:43px; width:100px; height:19px; "/>
- <line id="line5" class="line_4" style="x1:390px; y1:11px; x2:390px; y2:149px; "/>
- <caption id="caption13" class="search_name" style="left:5px; top:73px; width:86px; height:17px; ">환자검색 :</caption>
- <caption id="caption14" class="search_n_b" style="left:201px; top:46px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_pid" ref="/root/temp/send/pid" class="input_search" style="left:92px; top:72px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode != 13) return ;
-
- setInputNodeCurText();
-
- var sPid = model.getValue("/root/temp/send/pid") ;
- // ahafGetPatInfo : healexamweb/js/AHA001.js
- if( ahafGetPatInfo(2, sPid , "" , "/root/temp/send" ) ){
- model.setValue("/root/temp/send/pid" , model.getValue("/root/temp/patinfo/item/pid") );
- model.setValue("/root/temp/send/hngnm" , model.getValue("/root/temp/patinfo/item/hngnm") );
- }
- else {
- model.setValue("/root/temp/send/pid" , sPid );
- model.setValue("/root/temp/send/hngnm" , "" );
- }
-
- fGetPrntPatList();
- ]]>
- </script>
- </input>
- <button id="btn_selpat" class="icon_search" style="left:197px; top:72px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchPatInfo("SMAHR00900", "pnm","" , "N","", ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
- if( model.getValue( ipt_pid.attribute("ref")) != "" ){
- fGetPrntPatList();
- }
- ]]>
- </script>
- </button>
- <input id="ipt_pnm" ref="/root/temp/send/hngnm" class="input_search" style="left:220px; top:72px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13 ){
- fSearchPatInfo("SMAHR00900", "pnm", ipt_pnm.currentText , "N","", ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
- if( model.getValue( ipt_pid.attribute("ref")) != "" ){
- fGetPrntPatList();
- }
- }
- ]]>
- </script>
- </input>
- <select id="chk_cmpyyn" ref="/root/send/srchcmpyyn" overflow="visible" appearance="full" cols="4" rows="1" style="left:325px; top:103px; width:56px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>단체</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetCmpyCtrl(false);
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- fSetCmpyCtrl(true);
- ]]>
- </script>
- </select>
- <input id="ipt_srchcmpycd" ref="/root/send/srchcmpycd" class="input_search" imemode="disabled" _chartype="upper" style="left:92px; top:101px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13 ){
- //fGetComnCd("SMAHR00900", "08" , "cd", ipt_srchcmpycd.currentText ,ipt_srchcmpycd.attribute("ref"), ipt_srchcmpynm.attribute("ref") );
- ahafGetCmpyInfo( "08", ipt_srchcmpycd.currentText , "N", ipt_srchcmpycd.attribute("ref") , ipt_srchcmpynm.attribute("ref") , "");
- if( ipt_srchcmpycd.currentText != "" ) fGetConInfoList();
- }
- ]]>
- </script>
- </input>
- <button id="btn_selcmpycd" class="icon_search" style="left:197px; top:101px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetComnCd("SMAHR00900", "08" , "nm", ipt_srchcmpynm.currentText ,ipt_srchcmpycd.attribute("ref"), ipt_srchcmpynm.attribute("ref"));
- if( ipt_srchcmpycd.currentText != "" ) fGetConInfoList();
- ]]>
- </script>
- </button>
- <input id="ipt_srchcmpynm" ref="/root/send/srchcmpynm2" class="input_search" disabled="true" style="left:220px; top:101px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13 ){
- fGetComnCd("SMAHR00900", "08", "nm", ipt_srchcmpynm.currentText , ipt_srchcmpycd.attribute("ref") ,ipt_srchcmpynm.attribute("ref") );
- if( ipt_srchcmpycd.currentText != "" ) fGetConInfoList();
- }
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:400px; top:57px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //조회 버튼 클릭 이벤트
- fGetPrntPatList();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:5px; top:102px; width:88px; height:17px; ">단체 :</caption>
- <caption id="caption2" class="search_name" style="left:5px; top:16px; width:91px; height:17px; ">건진구분 :</caption>
- <select1 id="cmb_srchhealexamdetlflag" ref="/root/send/srchhealexamdetlflag" class="combo_search" appearance="minimal" style="left:92px; top:14px; width:228px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/hedetlflaglst/A0069">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fGetPrntPatList();
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:5px; top:131px; width:107px; height:17px; ">1차/2차구분 :</caption>
- <select1 id="cmb_type" ref="/root/send/srchonetwotype" class="combo_search" appearance="minimal" style="left:115px; top:130px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>1차</label>
- <value>0</value>
- </item>
- <item>
- <label>2차</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select id="chk_srchddn" ref="/root/send/srchddn" overflow="visible" appearance="full" style="left:325px; top:45px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>사용안함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <caption id="caption16" class="tit_2" style="left:472px; top:10px; width:111px; height:14px; ">단체</caption>
- <line id="line6" class="line_3" style="x1:470px; y1:197px; x2:1189px; y2:197px; "/>
- <datagrid id="datagrid2" nodeset="/root/exceldata/lgexcellst/item" visibility="hidden" caption="HNGNM^RRGSTNO^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^32^33^34^35^36^37^38^39^40^41^42^43^44^45^46^47^48^49^50^51^52^53^54^55^56^57^58^59^60^61^62^63^64^65^66^67^68^69^70^71^72^73^74^75^76^77^78^79^80^81^82^83^84^85^86^87^88^89^90^91^92^93^94^95^96^97^98^99^100^101^102^103^104^105^106^107^108^109^110^111^112^113^114^115^116^117^118^119^120^121^122^123^124^125^126^127^128^129^130^131^132^133^134^135^136^137^138^139^140^141^142^143^144^145^146^147^148^149^150^151^152^153^154^155^156^157^158^159^160^161^162^163^164^165^166^167^168^169^170^171^172^173^174^175^176^177^178^179^180^181^182^183^184^185^186^187^188^189^190^191^192^193^194^195^196^197^198^199^200^201^202^203^204^205^206^207^208" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:60px; top:320px; width:640px; height:195px; ">
- <col ref="hngnm"/>
- <col ref="rrgstno"/>
- <col ref="col1"/>
- <col ref="col2"/>
- <col ref="col3"/>
- <col ref="col4"/>
- <col ref="col5"/>
- <col ref="col6"/>
- <col ref="col7"/>
- <col ref="col8"/>
- <col ref="col9"/>
- <col ref="col10"/>
- <col ref="col11"/>
- <col ref="col12"/>
- <col ref="col13"/>
- <col ref="col14"/>
- <col ref="col15"/>
- <col ref="col16"/>
- <col ref="col17"/>
- <col ref="col18"/>
- <col ref="col19"/>
- <col ref="col20"/>
- <col ref="col21"/>
- <col ref="col22"/>
- <col ref="col23"/>
- <col ref="col24"/>
- <col ref="col25"/>
- <col ref="col26"/>
- <col ref="col27"/>
- <col ref="col28"/>
- <col ref="col29"/>
- <col ref="col30"/>
- <col ref="col31"/>
- <col ref="col32"/>
- <col ref="col33"/>
- <col ref="col34"/>
- <col ref="col35"/>
- <col ref="col36"/>
- <col ref="col37"/>
- <col ref="col38"/>
- <col ref="col39"/>
- <col ref="col40"/>
- <col ref="col41"/>
- <col ref="col42"/>
- <col ref="col43"/>
- <col ref="col44"/>
- <col ref="col45"/>
- <col ref="col46"/>
- <col ref="col47"/>
- <col ref="col48"/>
- <col ref="col49"/>
- <col ref="col50"/>
- <col ref="col51"/>
- <col ref="col52"/>
- <col ref="col53"/>
- <col ref="col54"/>
- <col ref="col55"/>
- <col ref="col56"/>
- <col ref="col57"/>
- <col ref="col58"/>
- <col ref="col59"/>
- <col ref="col60"/>
- <col ref="col61"/>
- <col ref="col62"/>
- <col ref="col63"/>
- <col ref="col64"/>
- <col ref="col65"/>
- <col ref="col66"/>
- <col ref="col67"/>
- <col ref="col68"/>
- <col ref="col69"/>
- <col ref="col70"/>
- <col ref="col71"/>
- <col ref="col72"/>
- <col ref="col73"/>
- <col ref="col74"/>
- <col ref="col75"/>
- <col ref="col76"/>
- <col ref="col77"/>
- <col ref="col78"/>
- <col ref="col79"/>
- <col ref="col80"/>
- <col ref="col81"/>
- <col ref="col82"/>
- <col ref="col83"/>
- <col ref="col84"/>
- <col ref="col85"/>
- <col ref="col86"/>
- <col ref="col87"/>
- <col ref="col88"/>
- <col ref="col89"/>
- <col ref="col90"/>
- <col ref="col91"/>
- <col ref="col92"/>
- <col ref="col93"/>
- <col ref="col94"/>
- <col ref="col95"/>
- <col ref="col96"/>
- <col ref="col97"/>
- <col ref="col98"/>
- <col ref="col99"/>
- <col ref="col100"/>
- <col ref="col101"/>
- <col ref="col102"/>
- <col ref="col103"/>
- <col ref="col104"/>
- <col ref="col105"/>
- <col ref="col106"/>
- <col ref="col107"/>
- <col ref="col108"/>
- <col ref="col109"/>
- <col ref="col110"/>
- <col ref="col111"/>
- <col ref="col112"/>
- <col ref="col113"/>
- <col ref="col114"/>
- <col ref="col115"/>
- <col ref="col116"/>
- <col ref="col117"/>
- <col ref="col118"/>
- <col ref="col119"/>
- <col ref="col120"/>
- <col ref="col121"/>
- <col ref="col122"/>
- <col ref="col123"/>
- <col ref="col124"/>
- <col ref="col125"/>
- <col ref="col126"/>
- <col ref="col127"/>
- <col ref="col128"/>
- <col ref="col129"/>
- <col ref="col130"/>
- <col ref="col131"/>
- <col ref="col132"/>
- <col ref="col133"/>
- <col ref="col134"/>
- <col ref="col135"/>
- <col ref="col136"/>
- <col ref="col137"/>
- <col ref="col138"/>
- <col ref="col139"/>
- <col ref="col140"/>
- <col ref="col141"/>
- <col ref="col142"/>
- <col ref="col143"/>
- <col ref="col144"/>
- <col ref="col145"/>
- <col ref="col146"/>
- <col ref="col147"/>
- <col ref="col148"/>
- <col ref="col149"/>
- <col ref="col150"/>
- <col ref="col151"/>
- <col ref="col152"/>
- <col ref="col153"/>
- <col ref="col154"/>
- <col ref="col155"/>
- <col ref="col156"/>
- <col ref="col157"/>
- <col ref="col158"/>
- <col ref="col159"/>
- <col ref="col160"/>
- <col ref="col161"/>
- <col ref="col162"/>
- <col ref="col163"/>
- <col ref="col164"/>
- <col ref="col165"/>
- <col ref="col166"/>
- <col ref="col167"/>
- <col ref="col168"/>
- <col ref="col169"/>
- <col ref="col170"/>
- <col ref="col171"/>
- <col ref="col172"/>
- <col ref="col173"/>
- <col ref="col174"/>
- <col ref="col175"/>
- <col ref="col176"/>
- <col ref="col177"/>
- <col ref="col178"/>
- <col ref="col179"/>
- <col ref="col180"/>
- <col ref="col181"/>
- <col ref="col182"/>
- <col ref="col183"/>
- <col ref="col184"/>
- <col ref="col185"/>
- <col ref="col186"/>
- <col ref="col187"/>
- <col ref="col188"/>
- <col ref="col189"/>
- <col ref="col190"/>
- <col ref="col191"/>
- <col ref="col192"/>
- <col ref="col193"/>
- <col ref="col194"/>
- <col ref="col195"/>
- <col ref="col196"/>
- <col ref="col197"/>
- <col ref="col198"/>
- <col ref="col199"/>
- <col ref="col200"/>
- <col ref="col201"/>
- <col ref="col202"/>
- <col ref="col203"/>
- <col ref="col204"/>
- <col ref="col205"/>
- <col ref="col206"/>
- <col ref="col207"/>
- <col ref="col208"/>
- </datagrid>
- <!-- 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 1. 질환여부검색 -->
- <datagrid id="datagrid3" nodeset="/root/exceldata/comexceljillist/item" visibility="hidden" caption="no^healexamflag^rsrvdd^rsrvno^cmpycd^sickcd^jugdcd" colsep="^" colwidth="55, 215, 207, 98, 100, 100, 100, 100" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:85px; top:535px; width:350px; height:145px; ">
- <col ref="no"/>
- <col ref="healexamflag"/>
- <col ref="rsrvdd"/>
- <col ref="rsrvno"/>
- <col ref="cmpycd"/>
- <col ref="sickcd"/>
- <col ref="jugdcd"/>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:754px; width:1195px; height:28px; ">
- <button id="btn_prnt" class="btn6_letter6" style="left:0px; top:4px; width:94px; height:22px; ">
- <caption>결과출력(구)</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fPrintRslt();
- ]]>
- </script>
- </button>
- <select id="chk_preview" ref="/root/temp/preview" overflow="visible" appearance="full" cols="4" rows="1" style="left:425px; top:7px; width:75px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>미리보기</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetCmpyCtrl(false);
- model.setValue("/root/temp/preview","Y");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- model.setValue("/root/temp/preview","");
- fSetCmpyCtrl(true);
- ]]>
- </script>
- </select>
- <button id="button1" class="btn6_letter6" style="left:315px; top:4px; width:104px; height:22px; ">
- <caption>단체결과출력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fCmpyColgRsltPrnt();
- ]]>
- </script>
- </button>
- <!-- 수정이력 : 20100401 JHP 질환추가 기본정보를 컬럼을 만들어서 넣어주고 나머지는 코드화해서 가져오기때문에 질환을 추가 하기에는 힘들다 하여 기본정보 넣는것처럼 추가함.-->
- <button id="button2" class="btn6_letter7" style="left:1073px; top:5px; width:116px; height:22px; ">
- <caption>엑셀저장(공통)</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removenode("/root/main1/titleinfo");
- model.removeNode("/root/exceldata/comexcellst/item");
- model.setValue("/root/send/srchcdgrupid", "S160");
- submit("TRAHR00910");
-
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 1. 질환여부검색 시작
- // 선택된 환자들의 질환을 가져온다.
- model.setValue("/root/temp/send2/pid", model.getValue("/root/temp/send/pid"));
- model.setValue("/root/temp/send2/hngnm", model.getValue("/root/temp/send/hngnm"));
- var nodeList2 = instance1.selectNodes(grd_prntlst.nodeset + "[sel='Y']");
- model.setValue("/root/temp/send2/excelparam", getNodeListCSV (nodeList2));
- model.removeNodeset("/root/exceldata/comexceljillist");
- //model.removeNode("/root/exceldata/comexceljillist/item");
- submit("TRAHR00913");
-
- // 가져온 질환중 환자기준 가장많은수를 판단한다.
- var jilcount = getNodesetCount("/root/exceldata/comexceljillist/item");
- var lastno = model.getValue("/root/exceldata/comexceljillist/item[" + jilcount + "]/no");
-
- var maxcnt = 0;
- var tno = 0;
- var cnt = 0;
- if(jilcount != 0) {
- for(var j = 1; j <= jilcount; j++){
- var fno = model.getValue("/root/exceldata/comexceljillist/item[" + j + "]/no");
- if(fno == tno){
- cnt++;
- }else{
- tno = fno;
- cnt = 1;
- }
- if(cnt > maxcnt){
- maxcnt = cnt;
- }
- }
- }
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 1. 질환여부검색 끝
-
- var icnt = parseInt(getNodesetCount("/root/main1/titleinfo/cmt")) + 1;
- var scaption = "CMPYNM^CONTYPE^FAMYRELACD^PID^HNGNM^RRGSTNO^HOPEDD";
- var k = 0;
- for (var i = 1; i < icnt; i++){
- scaption = scaption + "^" + model.getValue("/root/main1/titleinfo[" + i + "]/cmt");
- k = parseInt(k) + 1;
- }
-
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 2. 질환구분자갯수대로셋팅 시작
- var colk = k;
- if(maxcnt != 0){
- for(var m = 1; m <= maxcnt; m++){
- scaption = scaption + "^" + "JIL" + m;
- }
- k = k + maxcnt; // 그리드 컬럼명 증가
- }
- // 기존에 숨겼던거 다시 풀었다가 다시 숨기게끔 한다.
- for (var ii = parseInt(k + 1); ii < 243; ii++){
- datagrid1.colHidden(ii) = false;
- }
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 2. 질환구분자갯수대로셋팅 끝
- if (k < 242){
- for (var i = parseInt(k + 1); i < 243; i++){
- scaption = scaption + "^" + "";
- datagrid1.colHidden(i + 6) = true;
- }
- }
- //scaption = scaption + "^" + "JUDG";
- scaption = scaption + "^" + "GRADE"+ "^"+"JUDG";
- datagrid1.caption = scaption;
- model.setValue("/root/temp/send0/flag", "com");
- var gubun = "com";
-
- //datagrid1.colHidden(1) = false;
- //alert("com");
- //alert(datagrid1.colRef("grade"));
-
-
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 2. 질환구분자갯수넘기기 시작
- //fCmpyColgRsltExcel(); // 기존것.. 아무것도 안넘김
- fCmpyColgRsltExcel(maxcnt, colk,gubun); // 질환기준 가장많은질환가진 환자수, 질환시작
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 2. 질환구분자갯수넘기기 끝
- ]]>
- </script>
- </button>
- <select1 id="rdo_language" ref="/root/temp/language" appearance="full" cols="2" overflow="visible" style="left:525px; top:5px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>한글</label>
- <value>H</value>
- </item>
- <item>
- <label>영문</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <button id="button3" class="btn6_letter8" style="left:945px; top:5px; width:116px; height:22px; ">
- <caption>엑셀저장(LG전자)</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fCmpyColgRsltLGExcel();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn6_letter6" style="left:105px; top:4px; width:104px; height:22px; ">
- <caption>결과출력(신)</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fNewPrintRslt();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn6_letter5" style="left:853px; top:5px; width:92px; height:22px; ">
- <caption>단체업로드</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fCmpyUploadText();
- ]]>
- </script>
- </button>
- <button id="button6" class="btn6_letter6" style="left:210px; top:4px; width:104px; height:22px; ">
- <caption>의사소견출력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fDrOpnPrintRslt();
- ]]>
- </script>
- </button>
- <button id="button7" class="btn6_letter7" style="left:735px; top:5px; width:116px; height:22px; ">
- <caption>엑셀저장(자동)</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removenode("/root/main1/titleinfo");
- model.removeNode("/root/exceldata/comexcellst/item");
- model.setValue("/root/send/srchcdgrupid", "S160");
- submit("TRAHR00910");
-
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 1. 질환여부검색 시작
- // 선택된 환자들의 질환을 가져온다.
- model.setValue("/root/temp/send2/pid", model.getValue("/root/temp/send/pid"));
- model.setValue("/root/temp/send2/hngnm", model.getValue("/root/temp/send/hngnm"));
- var nodeList2 = instance1.selectNodes(grd_prntlst.nodeset + "[sel='Y']");
- model.setValue("/root/temp/send2/excelparam", getNodeListCSV (nodeList2));
- model.removeNodeset("/root/exceldata/comexceljillist");
- //model.removeNode("/root/exceldata/comexceljillist/item");
- submit("TRAHR00913");
-
- // 가져온 질환중 환자기준 가장많은수를 판단한다.
- var jilcount = getNodesetCount("/root/exceldata/comexceljillist/item");
- var lastno = model.getValue("/root/exceldata/comexceljillist/item[" + jilcount + "]/no");
- var maxcnt = 0;
- var tno = 0;
- var cnt = 0;
- if(jilcount != 0) {
- for(var j = 1; j <= jilcount; j++){
- var fno = model.getValue("/root/exceldata/comexceljillist/item[" + j + "]/no");
- if(fno == tno){
- cnt++;
- }else{
- tno = fno;
- cnt = 1;
- }
- if(cnt > maxcnt){
- maxcnt = cnt;
- }
- }
- }
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 1. 질환여부검색 끝
-
- var icnt = parseInt(getNodesetCount("/root/main1/titleinfo/cmt")) + 1;
- var scaption = "CMPYNM^CONTYPE^FAMYRELACD^PID^HNGNM^RRGSTNO^HOPEDD";
- var k = 0;
- for (var i = 1; i < icnt; i++){
- scaption = scaption + "^" + model.getValue("/root/main1/titleinfo[" + i + "]/cmt");
- k = parseInt(k) + 1;
- }
-
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 2. 질환구분자갯수대로셋팅 시작
- var colk = k;
- if(maxcnt != 0){
- for(var m = 1; m <= maxcnt; m++){
- scaption = scaption + "^" + "JIL" + m;
- }
- k = k + maxcnt; // 그리드 컬럼명 증가
- }
- // 기존에 숨겼던거 다시 풀었다가 다시 숨기게끔 한다.
- for (var ii = parseInt(k + 1); ii < 243; ii++){
- datagrid1.colHidden(ii) = false;
- }
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 2. 질환구분자갯수대로셋팅 끝
- if (k < 242){
- for (var i = parseInt(k + 1); i < 243; i++){
- scaption = scaption + "^" + "";
- datagrid1.colHidden(i + 6) = true;
- }
- }
- scaption = scaption + "^" + "GRADE"+ "^"+"JUDG";
- datagrid1.caption = scaption;
- model.setValue("/root/temp/send0/flag", "auto");
- var gubun = "auto";
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 2. 질환구분자갯수넘기기 시작
- //fCmpyColgRsltExcel(); // 기존것.. 아무것도 안넘김
- fCmpyColgRsltExcel(maxcnt, colk,gubun); // 질환기준 가장많은질환가진 환자수, 질환시작
- // 수정이력 : 추가 20100401 JHP 질환이 있으면 추가 해주기위해서 필요함. 2. 질환구분자갯수넘기기 끝
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="datagrid1" nodeset="/root/exceldata/comexcellst/item" visibility="hidden" caption="CMPYNM^CONTYPE^FAMYRELACD^PID^HNGNM^RRGSTNO^HOPEDD^VHBD1^VHBD2^VHBD3^VHBD4^VHBD6^VHBD7^VHBD8^VHBD9^VHBD5^JAH0001^VHEY1^VHEY2^VHEY3^VHEY4^VHEY17^VHEY8^VHEY9^FE667002^FE6752^VHEA3-1^VHEA3-2^VHEA3-3^VHEA3-4^VHEA3-5^VHEA3-6^VHEA4-1^VHEA4-2^VHEA4-3^VHEA4-4^VHEA4-5^VHEA4-6^VHEA3^VHEA4^VHEA1^VHEA2^FF634101^FF6361^VHFF6001-1^VHFF6001-2^VHFF6001-3^VHFF6001-4^VHFF6001-5^VHFFRESULT^FF6001^VHBP1^VHBP2^VHBP3^FE6541^LHR102^LHR103^LHR100^LHR10501^LHR10503^LHR10504^LHR10505^LHR10506^LHR101^LHR10801^LHR10802^LHR10803^LHR106^LHR107^LHR10701^LHR10702^LHR104^LHR113^LCR134^LCR135^LHR001^LHR10002^LHR105^LHR108^LUR003^LUR105^LUR102^LUR108^LUR106^LUR100^LUR109^LUR101^LUR104^LUR107^LUR103^LUR112^LUR11201^LUR11202^LUR11204^LCR100^LCT100^LCR127^LCR130^LCR131^LCR132^LCR133^LCR122^LIR102^LCR112^LCR113^LCR114^LCR125^LCR126^LCR109^LCR110^VHAGAP^VHAGRATIO^LCR118^LCR119^LCR121^LCR116^LCR117^LCR120^LCR123^LCR107^LCR108^LCR124^LIR104^LET112^LET109^LET116^LIR120^LIR121^NC7581^LIR122^LIR161^LIR123^LIR129^LEC101^LEC117^NC7423^NNM0001^NC7424^NC7433^NC7428^LUP102^LUP10001^LUP10002^LUP10003^LUP10004^LUP10005^LUP10006^LUP10007^LUP10008^LUP10009^LUP10101^LUP10102^LUP10103^LUP10104^LUP10105^LUP10106^LUP10107^VHCGRE^PCY10006^RGG270201G^RGG210114G^RRDU035^GE761101G^RSHA010G^GE766002G^RSHA03202G^RRDU047^RRDU026^RRDU074^NHC34201^RMCU003^FE654303G^GE758101^RRDU005^RRDU069^RCHA43412G^PCY20001^RMHE10101G^RMHE20101G^RMHE10905G^RMGE11101G^RMHE13501G^RMGE13602G^RMHE23603G^LOS124^NHZ331G^NHZ333G^NHZ33401G^PMO07001^RCHA46101G^RCHA47417G^RCHA47507G^RCHA47510G^RCHA47519G^RCHA47601G^RCHA47610G^NC7326^NC7348^NC7350^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16^caption17^caption18^caption19^caption20^caption21^caption22^caption23^caption24^caption25^caption26^caption27^caption28^caption29^caption30^caption31^caption32^caption33^caption34^caption35^caption36^caption37^caption38^caption39^caption40^caption41^caption42^caption43^caption44^caption45^caption46^caption47^caption48^caption49^caption50^GRADE^JUDG^JUDGD" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:405px; top:440px; width:640px; height:195px; ">
- <col ref="cmpynm"/>
- <col ref="contype"/>
- <col ref="famyrelacd"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="rrgstno"/>
- <col ref="hopedd"/>
- <col ref="data1"/>
- <col ref="data2"/>
- <col ref="data3"/>
- <col ref="data4"/>
- <col ref="data5"/>
- <col ref="data6"/>
- <col ref="data7"/>
- <col ref="data8"/>
- <col ref="data9"/>
- <col ref="data10"/>
- <col ref="data11"/>
- <col ref="data12"/>
- <col ref="data13"/>
- <col ref="data14"/>
- <col ref="data15"/>
- <col ref="data16"/>
- <col ref="data17"/>
- <col ref="data18"/>
- <col ref="data19"/>
- <col ref="data20"/>
- <col ref="data21"/>
- <col ref="data22"/>
- <col ref="data23"/>
- <col ref="data24"/>
- <col ref="data25"/>
- <col ref="data26"/>
- <col ref="data27"/>
- <col ref="data28"/>
- <col ref="data29"/>
- <col ref="data30"/>
- <col ref="data31"/>
- <col ref="data32"/>
- <col ref="data33"/>
- <col ref="data34"/>
- <col ref="data35"/>
- <col ref="data36"/>
- <col ref="data37"/>
- <col ref="data38"/>
- <col ref="data39"/>
- <col ref="data40"/>
- <col ref="data41"/>
- <col ref="data42"/>
- <col ref="data43"/>
- <col ref="data44"/>
- <col ref="data45"/>
- <col ref="data46"/>
- <col ref="data47"/>
- <col ref="data48"/>
- <col ref="data49"/>
- <col ref="data50"/>
- <col ref="data51"/>
- <col ref="data52"/>
- <col ref="data53"/>
- <col ref="data54"/>
- <col ref="data55"/>
- <col ref="data56"/>
- <col ref="data57"/>
- <col ref="data58"/>
- <col ref="data59"/>
- <col ref="data60"/>
- <col ref="data61"/>
- <col ref="data62"/>
- <col ref="data63"/>
- <col ref="data64"/>
- <col ref="data65"/>
- <col ref="data66"/>
- <col ref="data67"/>
- <col ref="data68"/>
- <col ref="data69"/>
- <col ref="data70"/>
- <col ref="data71"/>
- <col ref="data72"/>
- <col ref="data73"/>
- <col ref="data74"/>
- <col ref="data75"/>
- <col ref="data76"/>
- <col ref="data77"/>
- <col ref="data78"/>
- <col ref="data79"/>
- <col ref="data80"/>
- <col ref="data81"/>
- <col ref="data82"/>
- <col ref="data83"/>
- <col ref="data84"/>
- <col ref="data85"/>
- <col ref="data86"/>
- <col ref="data87"/>
- <col ref="data88"/>
- <col ref="data89"/>
- <col ref="data90"/>
- <col ref="data91"/>
- <col ref="data92"/>
- <col ref="data93"/>
- <col ref="data94"/>
- <col ref="data95"/>
- <col ref="data96"/>
- <col ref="data97"/>
- <col ref="data98"/>
- <col ref="data99"/>
- <col ref="data100"/>
- <col ref="data101"/>
- <col ref="data102"/>
- <col ref="data103"/>
- <col ref="data104"/>
- <col ref="data105"/>
- <col ref="data106"/>
- <col ref="data107"/>
- <col ref="data108"/>
- <col ref="data109"/>
- <col ref="data110"/>
- <col ref="data111"/>
- <col ref="data112"/>
- <col ref="data113"/>
- <col ref="data114"/>
- <col ref="data115"/>
- <col ref="data116"/>
- <col ref="data117"/>
- <col ref="data118"/>
- <col ref="data119"/>
- <col ref="data120"/>
- <col ref="data121"/>
- <col ref="data122"/>
- <col ref="data123"/>
- <col ref="data124"/>
- <col ref="data125"/>
- <col ref="data126"/>
- <col ref="data127"/>
- <col ref="data128"/>
- <col ref="data129"/>
- <col ref="data130"/>
- <col ref="data131"/>
- <col ref="data132"/>
- <col ref="data133"/>
- <col ref="data134"/>
- <col ref="data135"/>
- <col ref="data136"/>
- <col ref="data137"/>
- <col ref="data138"/>
- <col ref="data139"/>
- <col ref="data140"/>
- <col ref="data141"/>
- <col ref="data142"/>
- <col ref="data143"/>
- <col ref="data144"/>
- <col ref="data145"/>
- <col ref="data146"/>
- <col ref="data147"/>
- <col ref="data148"/>
- <col ref="data149"/>
- <col ref="data150"/>
- <col ref="data151"/>
- <col ref="data152"/>
- <col ref="data153"/>
- <col ref="data154"/>
- <col ref="data155"/>
- <col ref="data156"/>
- <col ref="data157"/>
- <col ref="data158"/>
- <col ref="data159"/>
- <col ref="data160"/>
- <col ref="data161"/>
- <col ref="data162"/>
- <col ref="data163"/>
- <col ref="data164"/>
- <col ref="data165"/>
- <col ref="data166"/>
- <col ref="data167"/>
- <col ref="data168"/>
- <col ref="data169"/>
- <col ref="data170"/>
- <col ref="data171"/>
- <col ref="data172"/>
- <col ref="data173"/>
- <col ref="data174"/>
- <col ref="data175"/>
- <col ref="data176"/>
- <col ref="data177"/>
- <col ref="data178"/>
- <col ref="data179"/>
- <col ref="data180"/>
- <col ref="data181"/>
- <col ref="data182"/>
- <col ref="data183"/>
- <col ref="data184"/>
- <col ref="data185"/>
- <col ref="data186"/>
- <col ref="data187"/>
- <col ref="data188"/>
- <col ref="data189"/>
- <col ref="data190"/>
- <col ref="data191"/>
- <col ref="data192"/>
- <col ref="data193"/>
- <col ref="data194"/>
- <col ref="data195"/>
- <col ref="data196"/>
- <col ref="data197"/>
- <col ref="data198"/>
- <col ref="data199"/>
- <col ref="data200"/>
- <col ref="data201"/>
- <col ref="data202"/>
- <col ref="data203"/>
- <col ref="data204"/>
- <col ref="data205"/>
- <col ref="data206"/>
- <col ref="data207"/>
- <col ref="data208"/>
- <col ref="data209"/>
- <col ref="data210"/>
- <col ref="data211"/>
- <col ref="data212"/>
- <col ref="data213"/>
- <col ref="data214"/>
- <col ref="data215"/>
- <col ref="data216"/>
- <col ref="data217"/>
- <col ref="data218"/>
- <col ref="data219"/>
- <col ref="data220"/>
- <col ref="data221"/>
- <col ref="data222"/>
- <col ref="data223"/>
- <col ref="data224"/>
- <col ref="data225"/>
- <col ref="data226"/>
- <col ref="data227"/>
- <col ref="data228"/>
- <col ref="data229"/>
- <col ref="data230"/>
- <col ref="data231"/>
- <col ref="data232"/>
- <col ref="data233"/>
- <col ref="data234"/>
- <col ref="data235"/>
- <col ref="data236"/>
- <col ref="data237"/>
- <col ref="data238"/>
- <col ref="data239"/>
- <col ref="data240"/>
- <col ref="data241"/>
- <col ref="data242"/>
- <col ref="grade"/>
- <col ref="judg" savetype="text" maxbyte="2000"/>
- <col ref="judgd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- alert(datagrid1.col + " --- " + datagrid1.row);
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|